﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="showmyteam.ascx.cs" Inherits="ffl_user_webusercontrols_showmyteam" %>
<table width="100%">
    <tr>
        <td colspan="2" class="tableheader" align="center">
            My team
        </td>
    </tr>
    <tr>
        <td>
            Goalkeepers:
        </td>
        <td>
            <asp:Label ID="GoalkeeperCountLabel" runat="server" Text="0/0"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            Defenders:
        </td>
        <td>
            <asp:Label ID="DefenderCountLabel" runat="server" Text="0/0"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            Midfielders:
        </td>
        <td>
            <asp:Label ID="MidfielderCountLabel" runat="server" Text="0/0"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            Forwards:
        </td>
        <td>
            <asp:Label ID="ForwardCountLabel" runat="server" Text="0/0"></asp:Label>
        </td>
    </tr>
</table>
<asp:Repeater runat="server" ID="ShowMyTeamRepeater" 
    OnItemDataBound="ShowMyTeamRepeater_ItemDataBound" OnItemCommand="ShowMyTeamRepeater_ItemCommand">
    <HeaderTemplate>
    </HeaderTemplate>
    <ItemTemplate>
        <div style="height: 55px;">
            <asp:HiddenField runat="server" ID="PlayerIdHidden" Value='<%# DataBinder.Eval(Container.DataItem, "PlayerId") %>' />
            <asp:HiddenField runat="server" ID="EspnRefHidden" Value='<%# DataBinder.Eval(Container.DataItem, "EspnPlayerId") %>' />
            <asp:HiddenField runat="server" ID="ClubIdHidden" Value='<%# DataBinder.Eval(Container.DataItem, "ClubId") %>' />
            <asp:Panel ID="PlayerPanel" runat="server" Width="250px" BorderStyle="Solid" BorderColor="#aaaaaa"
                BorderWidth="1" Height="50px" BackColor="#f2f9ff">
                <table style="width: 100%; height: 100%;">
                    <tr>
                        <td style="width: 20px;" align="center">
                            <%# DataBinder.Eval(Container.DataItem, "PositionShort") %>
                        </td>
                        <td style="width: 36px;" valign="middle" align="left">
                            <asp:Image ID="PlayerImage" runat="server" Width="36px" Height="50px" AlternateText='<%# DataBinder.Eval(Container.DataItem, "Forename") + " " + DataBinder.Eval(Container.DataItem, "Surname") %>' />
                        </td>
                        <td valign="middle" align="left" style="text-indent: 5px">
                            <%# DataBinder.Eval(Container.DataItem, "Forename") + " " + DataBinder.Eval(Container.DataItem, "Surname") %>
                            <br />
                               (<%# DataBinder.Eval(Container.DataItem, "ClubName")%>)
                        </td>
                        <td style="width: 14px;" valign="middle" align="right">
                            <asp:Button ID="RemovePlayerButton" runat="server" Text=" - " BackColor="#c6c6ff"
                                ForeColor="#ffffff" BorderColor="#cccccc" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
    </ItemTemplate>
    <FooterTemplate>
    </FooterTemplate>
</asp:Repeater>
